package com.yuju.rpt.dao.impl;


import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.yuju.common.core.dao.AbstractBaseDao;
import com.yuju.persist.base.mapper.BaseMapper;
import com.yuju.rpt.dao.IBusinessDailyDao;
import com.yuju.rpt.dao.entity.BusinessDaily;
import com.yuju.rpt.dao.mapper.BusinessDailyMapper;
import com.yuju.rpt.model.BusinessDailyModel;

/**
 * 类名：BusinessDailyDaoImpl  <br />
 *
 * 功能：
 *
 * @author : jiaokn <br />
 * @Date : 2018年1月30日 下午5:48:20  <br />
 * @version : 1.1 <br />
 */
@Repository
public class BusinessDailyDaoImpl extends AbstractBaseDao<BusinessDailyModel, BusinessDaily, String> implements IBusinessDailyDao {
	
	@Autowired
	private BusinessDailyMapper businessDailyMapper;
	
	@Override
	public BaseMapper<BusinessDaily, String> getMapper() {
		return businessDailyMapper;
	}

	@Override
	public BusinessDailyModel getAccountReportStat(Map<Object, Object> map) {
		return convertP2M(businessDailyMapper.getAccountReportStat(map));
	}

	@Override
	public List<BusinessDailyModel> getAccountReportMessage(Map<Object, Object> map) {
		return convertP2M(businessDailyMapper.getAccountReportMessage(map));
	}

	

}
